#被动技能【守卫者】
effect give @a[tag=yao,scores={skHealth=..10,skCDPlayer=4..}] minecraft:regeneration 5 0 true
scoreboard players set @a[tag=yao,scores={skHealth=..10,skCDPlayer=4..}] skCDPlayer 0
#被动技能【圣光祝福】
execute as @a[tag=yao,scores={skPlayer=0,skShouShang1=1..}] at @s run function nw:yingxiong/2yingxiong/05ling/skill/0zhufu
#被动技能【圣光祝福】CD
scoreboard players set @a[tag=yao,scores={skCDPlayer1=0}] skShouShang1 0
scoreboard players set @a[tag=yao,scores={skCDPlayer1=0}] skPlayer 0
scoreboard players reset @a[tag=yao,scores={skCDPlayer1=0}] skCDPlayer1

#主动技能【圣光迸发】
execute as @a[tag=yao,scores={skEgg=1..}] at @s run function nw:yingxiong/2yingxiong/05ling/skill/1shengguang
#主动技能【圣光迸发】CD
execute as @a[tag=yao,scores={skCDEgg=0}] run function nw:yingxiong/2yingxiong/05ling/skill/1shengguang_cd

#主动技能【圣灵标记】
execute as @a[tag=yao,scores={skEXBottle=1..}] at @s run function nw:yingxiong/2yingxiong/05ling/skill/3shengguang1
#主动技能【圣灵标记】二段：【开光斧】
execute as @a[tag=yao,scores={Golden_axe1=1..}] at @s run function nw:yingxiong/2yingxiong/05ling/skill/3shengguang2
#主动技能【圣灵标记】CD
execute as @a[tag=yao,scores={skCDEXBottle=0}] run function nw:yingxiong/2yingxiong/05ling/skill/3shengguang_cd

#主动技能【圣灵标记】二段：【开光斧】特效
execute as @a[tag=yao] if data entity @s SelectedItem{id:"minecraft:golden_axe"} at @s at @a[distance=0.1..14,gamemode=!spectator,scores={ling5=1}] run particle heart ~ ~0.2 ~ 0.1 0.1 0.1 0.01 1 normal @a[tag=yao]

execute as @a[tag=yao] run title @s actionbar [{"text":"圣光祝福","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDPlayer1","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 圣光迸发","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEgg","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 圣灵标记","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEXBottle","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
